//发送异步请求
function httpReq(params ={}){
  let url = params.url || "";
  let data = params.data || {};
  let method = params.method || "GET";
  return new Promise((success,fail)=>{
    wx.request({
      url,
      data,
      method,
      success:success,
      fail:fail
    });
  });
}
export {httpReq};